<?php

class SideBar {

    private $content;

    function __construct() {
        $main_content = new Div_Container("id", "sidebar");

        $main_content->addContent('<ul>' .
                '<li>' . '<a href="' . $_SERVER['PHP_SELF'] . '?action=home"' . '>Home</a></li>' .
                '<li>' . '<a href="' . $_SERVER['PHP_SELF'] . '?action=calendar"' . '>Schedule</a></li>' .
                '<li>' . '<a href="' . $_SERVER['PHP_SELF'] . '?action=reports"' . '>Reports</a></li>' .
                '<li>' . '<a href="' . $_SERVER['PHP_SELF'] . '?action=resources"' . '>Resources</a></li>' .
                '<li>' . '<a href="' . $_SERVER['PHP_SELF'] . '?action=reservations"' . '>Reservations</a></li>' .
                '</ul>');
        $this->content .= $main_content->toString();
    }

    public function addContent($str) {
        $this->content .= $str;
    }

    public function toString() {

        return $this->content;
    }

}

?>
